package Demo02;
import java.io.*;
import java.net.*;
public class lianxi107 {
    public static void main(String[] args) throws  Exception {
        ServerSocket serverSocket = new ServerSocket(9999);
        System.out.println("【HelloServer】服务器启动监听......");
        Socket client = serverSocket.accept();
        PrintStream out = new PrintStream(client.getOutputStream());
        out.println("www.yootk.com");
        client.shutdownOutput();
        serverSocket.close();
    }
}
